package fox.framework.rpc.endpoint.channel;


import fox.framework.rpc.exception.RpcRuntimeException;

/**
 * Rpc状态式通道
 * @author cuichao
 * @Description: RpcStatusChannel
 * @Date: create in 2021/1/4 21:19
 */
public interface RpcStatusChannel extends RpcChannel{
    /**
     * 判断连接是否存活
     * @return
     */
    boolean isAlive();
    /**
     * 关闭
     * @throws RpcRuntimeException
     */
    void close() throws RpcRuntimeException;
}
